package com.model.demo.spring.framework.beans;

public class MyBeanWrapper {

    private  Object wrapperInstance;

    private Class<?> wrappedClass;

    public MyBeanWrapper(){};

    public MyBeanWrapper(Object wrapperInstance){
        this.wrapperInstance = wrapperInstance;
        this.wrappedClass = wrapperInstance.getClass();
    }

    //获取单例对象
    public Object getWrapperInstance() {
        return this.wrapperInstance;
    }

    //如果不是单例，根据类名生成
    public Class<?> getWrappedClass() {
        return this.wrappedClass;
    }
}
